/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.datalogic.businesslogic.orderprocess;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.openbravo.bean.erp.Order;
import com.openbravo.data.basic.BasicException;
import cn.ekuma.epos.datalogic.I_DataLogicERP;
import net.xeoh.plugins.base.PluginManager;

/**
 *
 * @author Administrator
 */
public interface I_ProcessManager {
    public  Map<String,I_OrderProcessFlow> getProcesFlowMap();

    public I_OrderProcessFlow getProcessFlow(String processName);
    
    public  Map<String,I_OrderProcess> getProcesMap();
    
    public I_OrderProcess getProcess(String processName);
    

	public HashMap<String, String> getOrderProcessProp(I_DataLogicERP dlSales,
			String orderTypeId, String processName)throws BasicException;
	
	public List<String> getAllOrderProcess()throws BasicException;
	
	public void saveOrder(I_DataLogicERP dlERP,Order order) throws BasicException;
	
	public Order loadOrder(I_DataLogicERP dlERP,String orderid) throws BasicException;
	
	public void deleteOrder(I_DataLogicERP dlERP, Order order) throws BasicException;
}
